export const routes=[
    {
        path: '/',
        name: 'login',
        component: () => import( '../views/login.vue')
      },
      {
        path: '/about',
        name: 'About',
        component: () => import( '../views/About.vue')
      },

    {
        path: '/home',
        name: 'home', 
        component: () => import( '../views/home.vue'),
        children:[
            {
                path: 'usera',
                name: 'usera',
                meta:{
                    arr:["首页","商品价格管理"],
                    linktext:"商品价格管理",
                    linkicon:"el-icon-delete-solid",
                    linkto:"/home/usera"
          
                  },
                component: () => import( '../views/user/usera.vue')
            },{
                path: 'userb',
                name: 'userb',
                meta:{
                    arr:["首页","商品库存管理"],
                    linktext:"商品库存管理",
                    linkicon:"el-icon-delete-solid",
                    linkto:"/home/userb"
          
                  },
                component: () => import( '../views/user/userb.vue')
            },{
                path: 'userc',
                name: 'userc',
                meta:{
                    arr:["首页","商品评价管理"],
                    linktext:"商品评价管理",
                    linkicon:"el-icon-delete-solid",
                    linkto:"/home/userc"
          
                  },
                component: () => import( '../views/user/userc.vue')
            }
        ]
    }
]